package com.wxb.mapper;

import com.wxb.domain.MallSmsLogEntity;
import com.wxb.domain.MallUserEntity;
import org.apache.ibatis.annotations.Param;

/**
 * @Date 2025-05-30 15:02
 * @Version 1.0
 * @Description
 * @ClassName MallUserMapper
 **/
public interface MallUserMapper extends BaseMapper<MallUserEntity>{
    MallUserEntity queryByMobile(String mobile);

    MallUserEntity queryByOpenId(@Param("openId") String openId);

    /**
     * 获取用户最后一条短信
     *
     * @param userId
     * @return
     */
    MallSmsLogEntity querySmsCodeByUserId(@Param("userId") Long userId);

    /**
     * 保存短信
     *
     * @param smsLogVo
     * @return
     */
    int saveSmsCodeLog(MallSmsLogEntity smsLogVo);
}
